package com.ossjk.oa.system.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * <p>
 * 岗位权限表
 * </p>
 *
 * @author chair
 * @since 2019-01-26
 */
@TableName("post_permission")
public class PostPermission extends Model<PostPermission> {

	private static final long serialVersionUID = 1L;
	@TableId("id")
	private String id;
	/**
	 * 岗位id
	 */
	@TableField("pid")
	private String pid;
	/**
	 * 权限id
	 */
	@TableField("perid")
	private String perid;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public String getPerid() {
		return perid;
	}

	public void setPerid(String perid) {
		this.perid = perid;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "PostPermission{" + ", id1=" + id + ", pid=" + pid + ", perid=" + perid + "}";
	}
}
